import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 21626
 * Date: 2024-11-02
 * Time: 9:17
 */

public class Test7 {
    public static int[] bcd(int n){
        int[] str = new int[32];
        int i = 0;
        do{
                str[31-i] = (n%2);
            i++;
            n /= 2;
        }while (n != 0);
        return str;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();
        int[] str = bcd(i);
        for (int x:str) {
            System.out.print(x);
        }
    }
}
